<?php

require("../models/webconfig.php");
require("../models/class.connection.php");
include("../models/entities/class.OrderEntity.php");
include("../models/repositories/class.OrderRepository.php");
$orderRepository = new OrderRepository();

if (isset($_POST['orderId']) && isset($_POST['checked'])) {
    if ($orderRepository->UpdateOrderChecked($_POST['orderId'], $_POST['checked'])) {
        echo "1";
    } else {
        echo "0";
    }
}
?>
